[INFO] cloning repository https://github.com/tamaroning/mini-rustc
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tamaroning/mini-rustc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftamaroning%2Fmini-rustc", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftamaroning%2Fmini-rustc'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 37b614f2ca3d81f3b95bab1dc3e4a279800926b4
[INFO] checking tamaroning/mini-rustc against master#98e1f041b6e33598a18edb928ec9db93a850c6cb for pr-101680
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftamaroning%2Fmini-rustc" "/workspace/builds/worker-6/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/tamaroning/mini-rustc on toolchain 98e1f041b6e33598a18edb928ec9db93a850c6cb
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+98e1f041b6e33598a18edb928ec9db93a850c6cb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/tamaroning/mini-rustc
[INFO] finished tweaking git repo https://github.com/tamaroning/mini-rustc
[INFO] tweaked toml for git repo https://github.com/tamaroning/mini-rustc written to /workspace/builds/worker-6/source/Cargo.toml
[INFO] crate git repo https://github.com/tamaroning/mini-rustc already has a lockfile, it will not be regenerated
[INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+98e1f041b6e33598a18edb928ec9db93a850c6cb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating git repository `https://github.com/TheDan64/inkwell`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded llvm-sys v120.2.3
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+98e1f041b6e33598a18edb928ec9db93a850c6cb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] f30db748c351143365aca57ac9e4e196b57c06ba1ee88f13683019cf497c3aa1
[INFO] running `Command { std: "docker" "start" "-a" "f30db748c351143365aca57ac9e4e196b57c06ba1ee88f13683019cf497c3aa1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "f30db748c351143365aca57ac9e4e196b57c06ba1ee88f13683019cf497c3aa1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "f30db748c351143365aca57ac9e4e196b57c06ba1ee88f13683019cf497c3aa1", kill_on_drop: false }`
[INFO] [stdout] f30db748c351143365aca57ac9e4e196b57c06ba1ee88f13683019cf497c3aa1
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:824c28ce115f6b999260af6986f3384c158e782489540e41c0b698ca1d9fd927" "/opt/rustwide/cargo-home/bin/cargo" "+98e1f041b6e33598a18edb928ec9db93a850c6cb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 40c9a0c08a995c3bb7105319d53f93350cbf21f871c76716bc0e56f3f065bbfa
[INFO] running `Command { std: "docker" "start" "-a" "40c9a0c08a995c3bb7105319d53f93350cbf21f871c76716bc0e56f3f065bbfa", kill_on_drop: false }`
[INFO] [stderr]    Compiling memchr v2.4.1
[INFO] [stderr]    Compiling lazy_static v1.4.0
[INFO] [stderr]    Compiling ucd-trie v0.1.3
[INFO] [stderr]    Compiling libc v0.2.123
[INFO] [stderr]    Compiling crunchy v0.2.2
[INFO] [stderr]    Compiling proc-macro-hack v0.5.19
[INFO] [stderr]    Compiling regex-syntax v0.6.25
[INFO] [stderr]    Compiling proc-macro2 v1.0.37
[INFO] [stderr]    Compiling tiny-keccak v2.0.2
[INFO] [stderr]    Compiling cfg-if v1.0.0
[INFO] [stderr]    Compiling autocfg v1.1.0
[INFO] [stderr]    Compiling unicode-xid v0.2.2
[INFO] [stderr]    Compiling cc v1.0.73
[INFO] [stderr]    Compiling syn v1.0.91
[INFO] [stderr]    Compiling parking_lot_core v0.9.2
[INFO] [stderr]     Checking scopeguard v1.1.0
[INFO] [stderr]     Checking smallvec v1.8.0
[INFO] [stderr]    Compiling inkwell v0.1.0 (https://github.com/TheDan64/inkwell?branch=master#36c3b106)
[INFO] [stderr]     Checking either v1.6.1
[INFO] [stderr]     Checking once_cell v1.10.0
[INFO] [stderr]    Compiling pest v2.1.3
[INFO] [stderr]    Compiling lock_api v0.4.7
[INFO] [stderr]    Compiling aho-corasick v0.7.18
[INFO] [stderr]    Compiling quote v1.0.18
[INFO] [stderr]    Compiling semver-parser v0.10.2
[INFO] [stderr]    Compiling getrandom v0.2.6
[INFO] [stderr]     Checking parking_lot v0.12.0
[INFO] [stderr]    Compiling const-random-macro v0.1.13
[INFO] [stderr]    Compiling semver v0.11.0
[INFO] [stderr]     Checking const-random v0.1.13
[INFO] [stderr]     Checking ahash v0.3.8
[INFO] [stderr]    Compiling regex v1.5.5
[INFO] [stderr]     Checking chumsky v0.8.0
[INFO] [stderr]    Compiling llvm-sys v120.2.3
[INFO] [stderr]    Compiling inkwell_internals v0.5.0 (https://github.com/TheDan64/inkwell?branch=master#36c3b106)
[INFO] [stderr]     Checking mini-rustc v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused imports: `IntType`, `self`
[INFO] [stdout]  --> src/codegen.rs:4:22
[INFO] [stdout]   |
[INFO] [stdout] 4 | use inkwell::types::{self, IntType};
[INFO] [stdout]   |                      ^^^^  ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BasicValue`
[INFO] [stdout]  --> src/codegen.rs:5:29
[INFO] [stdout]   |
[INFO] [stdout] 5 | use inkwell::values::{self, BasicValue};
[INFO] [stdout]   |                             ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::ty::Type`
[INFO] [stdout]   --> src/codegen.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::ty::Type;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `IntType`, `self`
[INFO] [stdout]  --> src/codegen.rs:4:22
[INFO] [stdout]   |
[INFO] [stdout] 4 | use inkwell::types::{self, IntType};
[INFO] [stdout]   |                      ^^^^  ^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `BasicValue`
[INFO] [stdout]  --> src/codegen.rs:5:29
[INFO] [stdout]   |
[INFO] [stdout] 5 | use inkwell::values::{self, BasicValue};
[INFO] [stdout]   |                             ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::ty::Type`
[INFO] [stdout]   --> src/codegen.rs:10:5
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::ty::Type;
[INFO] [stdout]    |     ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `codegen`
[INFO] [stdout]   --> src/codegen.rs:22:13
[INFO] [stdout]    |
[INFO] [stdout] 22 |     let mut codegen = unsafe { CodeGen::new("mod_name") };
[INFO] [stdout]    |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_codegen`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `program`
[INFO] [stdout]   --> src/codegen.rs:21:16
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub fn codegen(program: Program) {
[INFO] [stdout]    |                ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `args`
[INFO] [stdout]   --> src/codegen.rs:64:13
[INFO] [stdout]    |
[INFO] [stdout] 64 |             args,
[INFO] [stdout]    |             ^^^^ help: try ignoring the field: `args: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ret_ty`
[INFO] [stdout]   --> src/codegen.rs:65:13
[INFO] [stdout]    |
[INFO] [stdout] 65 |             ret_ty,
[INFO] [stdout]    |             ^^^^^^ help: try ignoring the field: `ret_ty: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ty`
[INFO] [stdout]   --> src/codegen.rs:67:13
[INFO] [stdout]    |
[INFO] [stdout] 67 |             ty,
[INFO] [stdout]    |             ^^ help: try ignoring the field: `ty: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `n`
[INFO] [stdout]    --> src/codegen.rs:113:35
[INFO] [stdout]     |
[INFO] [stdout] 113 |     unsafe fn make_num(&mut self, n: i32) -> GenResult {
[INFO] [stdout]     |                                   ^ help: if this is intentional, prefix it with an underscore: `_n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/codegen.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 22 |     let mut codegen = unsafe { CodeGen::new("mod_name") };
[INFO] [stdout]    |         ----^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing local variable `context`
[INFO] [stdout]   --> src/codegen.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 34 |           let module = context.create_module(mod_name);
[INFO] [stdout]    |                        ------------------------------- `context` is borrowed here
[INFO] [stdout] 35 |           let builder = context.create_builder();
[INFO] [stdout] 36 | /         CodeGen {
[INFO] [stdout] 37 | |             context,
[INFO] [stdout] 38 | |             module,
[INFO] [stdout] 39 | |             builder,
[INFO] [stdout] 40 | |         }
[INFO] [stdout]    | |_________^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing local variable `context`
[INFO] [stdout]   --> src/codegen.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 35 |           let builder = context.create_builder();
[INFO] [stdout]    |                         ------------------------ `context` is borrowed here
[INFO] [stdout] 36 | /         CodeGen {
[INFO] [stdout] 37 | |             context,
[INFO] [stdout] 38 | |             module,
[INFO] [stdout] 39 | |             builder,
[INFO] [stdout] 40 | |         }
[INFO] [stdout]    | |_________^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0505]: cannot move out of `context` because it is borrowed
[INFO] [stdout]   --> src/codegen.rs:37:13
[INFO] [stdout]    |
[INFO] [stdout] 31 |   impl<'ctx> CodeGen<'ctx> {
[INFO] [stdout]    |        ---- lifetime `'ctx` defined here
[INFO] [stdout] ...
[INFO] [stdout] 34 |           let module = context.create_module(mod_name);
[INFO] [stdout]    |                        ------------------------------- borrow of `context` occurs here
[INFO] [stdout] 35 |           let builder = context.create_builder();
[INFO] [stdout] 36 | /         CodeGen {
[INFO] [stdout] 37 | |             context,
[INFO] [stdout]    | |             ^^^^^^^ move out of `context` occurs here
[INFO] [stdout] 38 | |             module,
[INFO] [stdout] 39 | |             builder,
[INFO] [stdout] 40 | |         }
[INFO] [stdout]    | |_________- returning this value requires that `context` is borrowed for `'ctx`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `codegen`
[INFO] [stdout]   --> src/codegen.rs:22:13
[INFO] [stdout]    |
[INFO] [stdout] 22 |     let mut codegen = unsafe { CodeGen::new("mod_name") };
[INFO] [stdout]    |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_codegen`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]   --> src/codegen.rs:69:24
[INFO] [stdout]    |
[INFO] [stdout] 31 | impl<'ctx> CodeGen<'ctx> {
[INFO] [stdout]    |      ---- lifetime `'ctx` defined here
[INFO] [stdout] ...
[INFO] [stdout] 61 |     unsafe fn gen_func(&mut self, func: Func) -> GenResult {
[INFO] [stdout]    |                        - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 69 |         let ret_llty = self.context.i32_type();
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'ctx`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `program`
[INFO] [stdout]   --> src/codegen.rs:21:16
[INFO] [stdout]    |
[INFO] [stdout] 21 | pub fn codegen(program: Program) {
[INFO] [stdout]    |                ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_program`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `args`
[INFO] [stdout]   --> src/codegen.rs:64:13
[INFO] [stdout]    |
[INFO] [stdout] 64 |             args,
[INFO] [stdout]    |             ^^^^ help: try ignoring the field: `args: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ret_ty`
[INFO] [stdout]   --> src/codegen.rs:65:13
[INFO] [stdout]    |
[INFO] [stdout] 65 |             ret_ty,
[INFO] [stdout]    |             ^^^^^^ help: try ignoring the field: `ret_ty: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]   --> src/codegen.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 69 |         let ret_llty = self.context.i32_type();
[INFO] [stdout]    |                        ----------------------- immutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 78 |         self.gen_func_body(*body)?;
[INFO] [stdout]    |         ^^^^^-------------^^^^^^^
[INFO] [stdout]    |         |    |
[INFO] [stdout]    |         |    immutable borrow later used by call
[INFO] [stdout]    |         mutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `ty`
[INFO] [stdout]   --> src/codegen.rs:67:13
[INFO] [stdout]    |
[INFO] [stdout] 67 |             ty,
[INFO] [stdout]    |             ^^ help: try ignoring the field: `ty: _`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `n`
[INFO] [stdout]    --> src/codegen.rs:113:35
[INFO] [stdout]     |
[INFO] [stdout] 113 |     unsafe fn make_num(&mut self, n: i32) -> GenResult {
[INFO] [stdout]     |                                   ^ help: if this is intentional, prefix it with an underscore: `_n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `self.builder` as immutable because it is also borrowed as mutable
[INFO] [stdout]   --> src/codegen.rs:92:9
[INFO] [stdout]    |
[INFO] [stdout] 85 |         let body_value = self.gen_expr(body)?;
[INFO] [stdout]    |                          ------------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 92 |         self.builder.build_return(ret);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^---^
[INFO] [stdout]    |         |                         |
[INFO] [stdout]    |         |                         mutable borrow later used here
[INFO] [stdout]    |         immutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/codegen.rs:22:9
[INFO] [stdout]    |
[INFO] [stdout] 22 |     let mut codegen = unsafe { CodeGen::new("mod_name") };
[INFO] [stdout]    |         ----^^^^^^^
[INFO] [stdout]    |         |
[INFO] [stdout]    |         help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing local variable `context`
[INFO] [stdout]   --> src/codegen.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 34 |           let module = context.create_module(mod_name);
[INFO] [stdout]    |                        ------------------------------- `context` is borrowed here
[INFO] [stdout] 35 |           let builder = context.create_builder();
[INFO] [stdout] 36 | /         CodeGen {
[INFO] [stdout] 37 | |             context,
[INFO] [stdout] 38 | |             module,
[INFO] [stdout] 39 | |             builder,
[INFO] [stdout] 40 | |         }
[INFO] [stdout]    | |_________^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing local variable `context`
[INFO] [stdout]   --> src/codegen.rs:36:9
[INFO] [stdout]    |
[INFO] [stdout] 35 |           let builder = context.create_builder();
[INFO] [stdout]    |                         ------------------------ `context` is borrowed here
[INFO] [stdout] 36 | /         CodeGen {
[INFO] [stdout] 37 | |             context,
[INFO] [stdout] 38 | |             module,
[INFO] [stdout] 39 | |             builder,
[INFO] [stdout] 40 | |         }
[INFO] [stdout]    | |_________^ returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0505]: cannot move out of `context` because it is borrowed
[INFO] [stdout]   --> src/codegen.rs:37:13
[INFO] [stdout]    |
[INFO] [stdout] 31 |   impl<'ctx> CodeGen<'ctx> {
[INFO] [stdout]    |        ---- lifetime `'ctx` defined here
[INFO] [stdout] ...
[INFO] [stdout] 34 |           let module = context.create_module(mod_name);
[INFO] [stdout]    |                        ------------------------------- borrow of `context` occurs here
[INFO] [stdout] 35 |           let builder = context.create_builder();
[INFO] [stdout] 36 | /         CodeGen {
[INFO] [stdout] 37 | |             context,
[INFO] [stdout]    | |             ^^^^^^^ move out of `context` occurs here
[INFO] [stdout] 38 | |             module,
[INFO] [stdout] 39 | |             builder,
[INFO] [stdout] 40 | |         }
[INFO] [stdout]    | |_________- returning this value requires that `context` is borrowed for `'ctx`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: lifetime may not live long enough
[INFO] [stdout]   --> src/codegen.rs:69:24
[INFO] [stdout]    |
[INFO] [stdout] 31 | impl<'ctx> CodeGen<'ctx> {
[INFO] [stdout]    |      ---- lifetime `'ctx` defined here
[INFO] [stdout] ...
[INFO] [stdout] 61 |     unsafe fn gen_func(&mut self, func: Func) -> GenResult {
[INFO] [stdout]    |                        - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 69 |         let ret_llty = self.context.i32_type();
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^^^^^^^^ argument requires that `'1` must outlive `'ctx`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable
[INFO] [stdout]   --> src/codegen.rs:78:9
[INFO] [stdout]    |
[INFO] [stdout] 69 |         let ret_llty = self.context.i32_type();
[INFO] [stdout]    |                        ----------------------- immutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 78 |         self.gen_func_body(*body)?;
[INFO] [stdout]    |         ^^^^^-------------^^^^^^^
[INFO] [stdout]    |         |    |
[INFO] [stdout]    |         |    immutable borrow later used by call
[INFO] [stdout]    |         mutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `self.builder` as immutable because it is also borrowed as mutable
[INFO] [stdout]   --> src/codegen.rs:92:9
[INFO] [stdout]    |
[INFO] [stdout] 85 |         let body_value = self.gen_expr(body)?;
[INFO] [stdout]    |                          ------------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 92 |         self.builder.build_return(ret);
[INFO] [stdout]    |         ^^^^^^^^^^^^^^^^^^^^^^^^^^---^
[INFO] [stdout]    |         |                         |
[INFO] [stdout]    |         |                         mutable borrow later used here
[INFO] [stdout]    |         immutable borrow occurs here
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*lhs` which is behind a shared reference
[INFO] [stdout]    --> src/codegen.rs:137:57
[INFO] [stdout]     |
[INFO] [stdout] 137 |         let (lhs_gen_val, rhs_gen_val) = (self.gen_expr(*lhs)?, self.gen_expr(*rhs)?);
[INFO] [stdout]     |                                                         ^^^^ move occurs because `*lhs` has type `ast::Expr`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time
[INFO] [stdout]    --> src/codegen.rs:137:65
[INFO] [stdout]     |
[INFO] [stdout] 129 |     unsafe fn gen_binary_op_expr(&mut self, binary: BinaryOpExpr) -> GenResult {
[INFO] [stdout]     |                                  - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 137 |         let (lhs_gen_val, rhs_gen_val) = (self.gen_expr(*lhs)?, self.gen_expr(*rhs)?);
[INFO] [stdout]     |                                           -------------------   ^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here
[INFO] [stdout]     |                                           |
[INFO] [stdout]     |                                           first mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 149 |         Ok(ret)
[INFO] [stdout]     |         ------- returning this value requires that `*self` is borrowed for `'1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*rhs` which is behind a shared reference
[INFO] [stdout]    --> src/codegen.rs:137:79
[INFO] [stdout]     |
[INFO] [stdout] 137 |         let (lhs_gen_val, rhs_gen_val) = (self.gen_expr(*lhs)?, self.gen_expr(*rhs)?);
[INFO] [stdout]     |                                                                               ^^^^ move occurs because `*rhs` has type `ast::Expr`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `self.builder` as immutable because it is also borrowed as mutable
[INFO] [stdout]    --> src/codegen.rs:141:33
[INFO] [stdout]     |
[INFO] [stdout] 129 |       unsafe fn gen_binary_op_expr(&mut self, binary: BinaryOpExpr) -> GenResult {
[INFO] [stdout]     |                                    - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 137 |           let (lhs_gen_val, rhs_gen_val) = (self.gen_expr(*lhs)?, self.gen_expr(*rhs)?);
[INFO] [stdout]     |                                             ------------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 141 |                   let int_value = self
[INFO] [stdout]     |  _________________________________^
[INFO] [stdout] 142 | |                     .builder
[INFO] [stdout] 143 | |                     .build_int_add(lhs_int_value, rhs_int_value, "add");
[INFO] [stdout]     | |_______________________________________________________________________^ immutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 149 |           Ok(ret)
[INFO] [stdout]     |           ------- returning this value requires that `*self` is borrowed for `'1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*lhs` which is behind a shared reference
[INFO] [stdout]    --> src/codegen.rs:137:57
[INFO] [stdout]     |
[INFO] [stdout] 137 |         let (lhs_gen_val, rhs_gen_val) = (self.gen_expr(*lhs)?, self.gen_expr(*rhs)?);
[INFO] [stdout]     |                                                         ^^^^ move occurs because `*lhs` has type `ast::Expr`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time
[INFO] [stdout]    --> src/codegen.rs:137:65
[INFO] [stdout]     |
[INFO] [stdout] 129 |     unsafe fn gen_binary_op_expr(&mut self, binary: BinaryOpExpr) -> GenResult {
[INFO] [stdout]     |                                  - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 137 |         let (lhs_gen_val, rhs_gen_val) = (self.gen_expr(*lhs)?, self.gen_expr(*rhs)?);
[INFO] [stdout]     |                                           -------------------   ^^^^^^^^^^^^^^^^^^^ second mutable borrow occurs here
[INFO] [stdout]     |                                           |
[INFO] [stdout]     |                                           first mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 149 |         Ok(ret)
[INFO] [stdout]     |         ------- returning this value requires that `*self` is borrowed for `'1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0507]: cannot move out of `*rhs` which is behind a shared reference
[INFO] [stdout]    --> src/codegen.rs:137:79
[INFO] [stdout]     |
[INFO] [stdout] 137 |         let (lhs_gen_val, rhs_gen_val) = (self.gen_expr(*lhs)?, self.gen_expr(*rhs)?);
[INFO] [stdout]     |                                                                               ^^^^ move occurs because `*rhs` has type `ast::Expr`, which does not implement the `Copy` trait
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0502]: cannot borrow `self.builder` as immutable because it is also borrowed as mutable
[INFO] [stdout]    --> src/codegen.rs:141:33
[INFO] [stdout]     |
[INFO] [stdout] 129 |       unsafe fn gen_binary_op_expr(&mut self, binary: BinaryOpExpr) -> GenResult {
[INFO] [stdout]     |                                    - let's call the lifetime of this reference `'1`
[INFO] [stdout] ...
[INFO] [stdout] 137 |           let (lhs_gen_val, rhs_gen_val) = (self.gen_expr(*lhs)?, self.gen_expr(*rhs)?);
[INFO] [stdout]     |                                             ------------------- mutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 141 |                   let int_value = self
[INFO] [stdout]     |  _________________________________^
[INFO] [stdout] 142 | |                     .builder
[INFO] [stdout] 143 | |                     .build_int_add(lhs_int_value, rhs_int_value, "add");
[INFO] [stdout]     | |_______________________________________________________________________^ immutable borrow occurs here
[INFO] [stdout] ...
[INFO] [stdout] 149 |           Ok(ret)
[INFO] [stdout]     |           ------- returning this value requires that `*self` is borrowed for `'1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 10 previous errors; 10 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0499, E0502, E0505, E0507, E0515.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0499`.
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 10 previous errors; 10 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0499, E0502, E0505, E0507, E0515.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0499`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `mini-rustc` due to 11 previous errors; 10 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `mini-rustc` due to 11 previous errors; 10 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "40c9a0c08a995c3bb7105319d53f93350cbf21f871c76716bc0e56f3f065bbfa", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "40c9a0c08a995c3bb7105319d53f93350cbf21f871c76716bc0e56f3f065bbfa", kill_on_drop: false }`
[INFO] [stdout] 40c9a0c08a995c3bb7105319d53f93350cbf21f871c76716bc0e56f3f065bbfa
